﻿package plugin.superstore
{
    import com.sh.game.consts.*;
    import com.sh.game.global.*;
    import plugin.superstore.game.*;
    import view.*;

    public class ExchangeShop extends FlashUIBase
    {
        private var _ui:ShopGame;

        public function ExchangeShop()
        {
            return;
        }// end function

        override protected function preLoaderInit() : void
        {
            super.preLoaderInit();
            appendLoader(Config.getUrl("assets/images/mornui/common.swf", ResourceType.NORMAL));
            appendLoader(Config.getUrl("assets/images/mornui/jifenshop.swf", ResourceType.NORMAL));
            return;
        }// end function

        override protected function initGUI() : void
        {
            this._ui = new ShopGame(this);
            mGUI = this._ui;
            return;
        }// end function

        override protected function openRefresh() : void
        {
            if (this._ui.showType != int(data))
            {
                this._ui.showType = int(data);
                this._ui.init();
            }
            return;
        }// end function

    }
}
